
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>httpd.conf文件详解 · AGou's StudyNote</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="AGou">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Nginx.html" />
    
    
    <link rel="prev" href="httpd.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://agou-ops.github.io" target="_blank" class="custom-link">◆点击进入我的个人博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.1.</b>
                    
                    关于我
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Program_lang/">
            
                <a href="../Program_lang/">
            
                    
                        <b>1.2.</b>
                    
                    编程语言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Program_lang/Python.html">
            
                <a href="../Program_lang/Python.html">
            
                    
                        <b>1.2.1.</b>
                    
                    Python
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Program_lang/Java.html">
            
                <a href="../Program_lang/Java.html">
            
                    
                        <b>1.2.2.</b>
                    
                    Java
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../Program_lang/Splash_Lua.html">
            
                <a href="../Program_lang/Splash_Lua.html">
            
                    
                        <b>1.2.3.</b>
                    
                    Splash_Lua
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../Database/">
            
                <a href="../Database/">
            
                    
                        <b>1.3.</b>
                    
                    数据库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../Database/Mysql、MariaDB/README.md">
            
                <span>
            
                    
                        <b>1.3.1.</b>
                    
                    Mysql/MariaDB
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                <a href="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                    
                        <b>1.3.1.1.</b>
                    
                    MySQL/MariaDB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../Database/Mysql、MariaDB/php-mysql.html">
            
                <a href="../Database/Mysql、MariaDB/php-mysql.html">
            
                    
                        <b>1.3.1.2.</b>
                    
                    php-mysql
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../Database/MongoDB.html">
            
                <a href="../Database/MongoDB.html">
            
                    
                        <b>1.3.2.</b>
                    
                    MongoDB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../Database/Redis.html">
            
                <a href="../Database/Redis.html">
            
                    
                        <b>1.3.3.</b>
                    
                    Redis
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../Linux/">
            
                <a href="../Linux/">
            
                    
                        <b>1.4.</b>
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../Linux/Linux基础.html">
            
                <a href="../Linux/Linux基础.html">
            
                    
                        <b>1.4.1.</b>
                    
                    Linux基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                <a href="../Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                    
                        <b>1.4.2.</b>
                    
                    Linux启动流程、内核、grub、模块等
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../Linux/Linux服务器.html">
            
                <a href="../Linux/Linux服务器.html">
            
                    
                        <b>1.4.3.</b>
                    
                    Linux服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../Linux/Linux状态信息.html">
            
                <a href="../Linux/Linux状态信息.html">
            
                    
                        <b>1.4.4.</b>
                    
                    Linux状态信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../Linux/Linux网络客户端工具.html">
            
                <a href="../Linux/Linux网络客户端工具.html">
            
                    
                        <b>1.4.5.</b>
                    
                    Linux网络客户端工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../Linux/Linux网络配置.html">
            
                <a href="../Linux/Linux网络配置.html">
            
                    
                        <b>1.4.6.</b>
                    
                    Linux网络配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../Linux/Linux配置文件.md">
            
                <span>
            
                    
                        <b>1.4.7.</b>
                    
                    Linux配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="../Linux/Linux时间服务器.html">
            
                <a href="../Linux/Linux时间服务器.html">
            
                    
                        <b>1.4.8.</b>
                    
                    Linux时间服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="../Linux/Linux日志管理系统.html">
            
                <a href="../Linux/Linux日志管理系统.html">
            
                    
                        <b>1.4.9.</b>
                    
                    Linux日志管理系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="../Linux/sudo详解.html">
            
                <a href="../Linux/sudo详解.html">
            
                    
                        <b>1.4.10.</b>
                    
                    sudo详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="../Linux/SElinux.html">
            
                <a href="../Linux/SElinux.html">
            
                    
                        <b>1.4.11.</b>
                    
                    SELinux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="../Linux/iptables.html">
            
                <a href="../Linux/iptables.html">
            
                    
                        <b>1.4.12.</b>
                    
                    iptables
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="../Linux/Linux_shell.html">
            
                <a href="../Linux/Linux_shell.html">
            
                    
                        <b>1.4.13.</b>
                    
                    Linux Shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="../Linux/shell_awk.html">
            
                <a href="../Linux/shell_awk.html">
            
                    
                        <b>1.4.14.</b>
                    
                    shell_awk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="../Linux/OpenSSL、PKI搭建、算法.html">
            
                <a href="../Linux/OpenSSL、PKI搭建、算法.html">
            
                    
                        <b>1.4.15.</b>
                    
                    OpenSSL、PKI搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="../Linux/DNS服务器.html">
            
                <a href="../Linux/DNS服务器.html">
            
                    
                        <b>1.4.16.</b>
                    
                    DNS服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.17" data-path="../Linux/Frp内网穿透.html">
            
                <a href="../Linux/Frp内网穿透.html">
            
                    
                        <b>1.4.17.</b>
                    
                    Frp内网穿透
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="../Linux/Linux其他.md">
            
                <span>
            
                    
                        <b>1.4.18.</b>
                    
                    Linux其他
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Linux_FileSystem/">
            
                <a href="../Linux_FileSystem/">
            
                    
                        <b>1.5.</b>
                    
                    Linux文件系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Linux_FileSystem/FTP.html">
            
                <a href="../Linux_FileSystem/FTP.html">
            
                    
                        <b>1.5.1.</b>
                    
                    FTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Linux_FileSystem/SAMBA.html">
            
                <a href="../Linux_FileSystem/SAMBA.html">
            
                    
                        <b>1.5.2.</b>
                    
                    SAMBA
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Linux_Tools/">
            
                <a href="../Linux_Tools/">
            
                    
                        <b>1.6.</b>
                    
                    Linux工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../Linux_Tools/fzf工具.html">
            
                <a href="../Linux_Tools/fzf工具.html">
            
                    
                        <b>1.6.1.</b>
                    
                    fzf工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../Linux_Tools/工具集合.html">
            
                <a href="../Linux_Tools/工具集合.html">
            
                    
                        <b>1.6.2.</b>
                    
                    Linux工具集合
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.7.</b>
                    
                    网站服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="HTML基础.html">
            
                <a href="HTML基础.html">
            
                    
                        <b>1.7.1.</b>
                    
                    HTML基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="WEB基础.html">
            
                <a href="WEB基础.html">
            
                    
                        <b>1.7.2.</b>
                    
                    WEB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="httpd.html">
            
                <a href="httpd.html">
            
                    
                        <b>1.7.3.</b>
                    
                    httpd/Apache
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.7.4" data-path="httpd.conf文件详解.html">
            
                <a href="httpd.conf文件详解.html">
            
                    
                        <b>1.7.4.</b>
                    
                    httpd.conf文件详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="Nginx.html">
            
                <a href="Nginx.html">
            
                    
                        <b>1.7.5.</b>
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="HTTP状态码-详情.html">
            
                <a href="HTTP状态码-详情.html">
            
                    
                        <b>1.7.6.</b>
                    
                    HTTP状态码-详情
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../Common_Framework/">
            
                <a href="../Common_Framework/">
            
                    
                        <b>1.8.</b>
                    
                    常用框架
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../Common_Framework/LNMP.html">
            
                <a href="../Common_Framework/LNMP.html">
            
                    
                        <b>1.8.1.</b>
                    
                    LNMP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../Common_Framework/LAMP.html">
            
                <a href="../Common_Framework/LAMP.html">
            
                    
                        <b>1.8.2.</b>
                    
                    LAMP
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../Docker&K8s/">
            
                <a href="../Docker&K8s/">
            
                    
                        <b>1.9.</b>
                    
                    容器及容器编排
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.</b>
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.1.</b>
                    
                    Docker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../Docker&K8s/K8s/">
            
                <a href="../Docker&K8s/K8s/">
            
                    
                        <b>1.9.2.</b>
                    
                    K8s
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.2.1" data-path="../Docker&K8s/K8s/K8s基础知识.html">
            
                <a href="../Docker&K8s/K8s/K8s基础知识.html">
            
                    
                        <b>1.9.2.1.</b>
                    
                    K8s基础知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2.2" data-path="../Docker&K8s/K8s/K8s安装与部署.html">
            
                <a href="../Docker&K8s/K8s/K8s安装与部署.html">
            
                    
                        <b>1.9.2.2.</b>
                    
                    K8s安装与部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../Git/">
            
                <a href="../Git/">
            
                    
                        <b>1.10.</b>
                    
                    Git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../Git/Git基础.html">
            
                <a href="../Git/Git基础.html">
            
                    
                        <b>1.10.1.</b>
                    
                    Git基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../Git/GitLab服务器.html">
            
                <a href="../Git/GitLab服务器.html">
            
                    
                        <b>1.10.2.</b>
                    
                    GitLab服务器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../Windows/">
            
                <a href="../Windows/">
            
                    
                        <b>1.11.</b>
                    
                    Windows系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../Windows/cmd命令.html">
            
                <a href="../Windows/cmd命令.html">
            
                    
                        <b>1.11.1.</b>
                    
                    cmd命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../Vim.html">
            
                <a href="../Vim.html">
            
                    
                        <b>1.12.</b>
                    
                    Vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../i3WM快捷键.html">
            
                <a href="../i3WM快捷键.html">
            
                    
                        <b>1.13.</b>
                    
                    i3WM快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../ADB命令.html">
            
                <a href="../ADB命令.html">
            
                    
                        <b>1.14.</b>
                    
                    ADB命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../Tmux.html">
            
                <a href="../Tmux.html">
            
                    
                        <b>1.15.</b>
                    
                    Tmux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../Kindle.html">
            
                <a href="../Kindle.html">
            
                    
                        <b>1.16.</b>
                    
                    Kindle越狱指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../Other/">
            
                <a href="../Other/">
            
                    
                        <b>1.17.</b>
                    
                    Other
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../Other/pandoc.html">
            
                <a href="../Other/pandoc.html">
            
                    
                        <b>1.17.1.</b>
                    
                    pandoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../Other/jupyter&reveal.js.html">
            
                <a href="../Other/jupyter&reveal.js.html">
            
                    
                        <b>1.17.2.</b>
                    
                    jupyter & reveal.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../Other/json.html">
            
                <a href="../Other/json.html">
            
                    
                        <b>1.17.3.</b>
                    
                    json
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../Other/Reveal_js.html">
            
                <a href="../Other/Reveal_js.html">
            
                    
                        <b>1.17.4.</b>
                    
                    Reveal_js
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >httpd.conf文件详解</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <blockquote>
<p>&#x6765;&#x81EA;&#xFF1A;<a href="http://blog.itpub.net/9034054/viewspace-2075740/" target="_blank">http://blog.itpub.net/9034054/viewspace-2075740/</a></p>
</blockquote>
<p>Apache&#x7684;&#x4E3B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF1A;/etc/httpd/conf/httpd.conf
&#x9ED8;&#x8BA4;&#x7AD9;&#x70B9;&#x4E3B;&#x76EE;&#x5F55;&#xFF1A;/var/www/html/
Apache&#x670D;&#x52A1;&#x5668;&#x7684;&#x914D;&#x7F6E;&#x4FE1;&#x606F;&#x5168;&#x90E8;&#x5B58;&#x50A8;&#x5728;&#x4E3B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;/etc/httpd/conf/httpd.conf&#x4E2D;&#xFF0C;&#x8FD9;&#x4E2A;&#x6587;&#x4EF6;&#x4E2D;&#x7684;&#x5185;&#x5BB9;&#x975E;&#x5E38;&#x591A;&#xFF0C;&#x7528;wc&#x547D;&#x4EE4;&#x7EDF;&#x8BA1;&#x4E00;&#x5171;&#x6709;1009&#x884C;&#xFF0C;&#x5176;&#x4E2D;&#x5927;&#x90E8;&#x5206;&#x662F;&#x4EE5;#&#x5F00;&#x5934;&#x7684;&#x6CE8;&#x91CA;&#x884C;&#x3002;
[root@justin ~]# wc -l /etc/httpd/conf/httpd.conf 
1009 /etc/httpd/conf/httpd.conf </p>
<p>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5305;&#x62EC;&#x4E09;&#x90E8;&#x5206;&#xFF1A;</p>
<pre class="language-"><code>[root@justin ~]# grep &apos;\&apos; /etc/httpd/conf/httpd.conf -n 
33:### Section 1: Global Environment 
245:### Section 2: &apos;Main&apos; server configuration 
973:### Section 3: Virtual Hosts
</code></pre><p>1&#xFF09;Global Environment---&#x5168;&#x5C40;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#xFF0C;&#x51B3;&#x5B9A;Apache&#x670D;&#x52A1;&#x5668;&#x7684;&#x5168;&#x5C40;&#x53C2;&#x6570;
2&#xFF09;Main server configuration---&#x4E3B;&#x670D;&#x52A1;&#x914D;&#x7F6E;&#xFF0C;&#x76F8;&#x5F53;&#x4E8E;&#x662F;Apache&#x4E2D;&#x7684;&#x9ED8;&#x8BA4;Web&#x7AD9;&#x70B9;&#xFF0C;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x7684;&#x670D;&#x52A1;&#x5668;&#x4E2D;&#x53EA;&#x6709;&#x4E00;&#x4E2A;&#x7AD9;&#x70B9;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x53EA;&#x9700;&#x5728;&#x8FD9;&#x91CC;&#x914D;&#x7F6E;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;
3&#xFF09;Virtual Hosts---&#x865A;&#x62DF;&#x4E3B;&#x673A;&#xFF0C;&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x4E0D;&#x80FD;&#x4E0E;Main Server&#x4E3B;&#x670D;&#x52A1;&#x5668;&#x5171;&#x5B58;&#xFF0C;&#x5F53;&#x542F;&#x7528;&#x4E86;&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x4E4B;&#x540E;&#xFF0C;Main Server&#x5C31;&#x4E0D;&#x80FD;&#x4F7F;&#x7528;&#x4E86;
--------------------------------------------------------------------------------
<strong>1&#xFF09;</strong>Global Environment</p>
<blockquote>
<p>44 ServerTokens OS
&#x5728;&#x51FA;&#x73B0;&#x9519;&#x8BEF;&#x9875;&#x7684;&#x65F6;&#x5019;&#x662F;&#x5426;&#x663E;&#x793A;&#x670D;&#x52A1;&#x5668;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x7684;&#x540D;&#x79F0;&#xFF0C;ServerTokens Prod&#x4E3A;&#x4E0D;&#x663E;&#x793A;</p>
<p>57 ServerRoot &quot;/etc/httpd&quot;
&#x7528;&#x4E8E;&#x6307;&#x5B9A;Apache&#x7684;&#x8FD0;&#x884C;&#x76EE;&#x5F55;&#xFF0C;&#x670D;&#x52A1;&#x542F;&#x52A8;&#x4E4B;&#x540E;&#x81EA;&#x52A8;&#x5C06;&#x76EE;&#x5F55;&#x6539;&#x53D8;&#x4E3A;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#xFF0C;&#x5728;&#x540E;&#x9762;&#x4F7F;&#x7528;&#x5230;&#x7684;&#x6240;&#x6709;&#x76F8;&#x5BF9;&#x8DEF;&#x5F84;&#x90FD;&#x662F;&#x60F3;&#x5BF9;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;</p>
<p>65 PidFile run/httpd.pid
&#x8BB0;&#x5F55;httpd&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x7684;pid&#x53F7;&#x7801;&#xFF0C;&#x8FD9;&#x662F;&#x7CFB;&#x7EDF;&#x8BC6;&#x522B;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x7CFB;&#x7EDF;&#x4E2D;httpd&#x8FDB;&#x7A0B;&#x53EF;&#x4EE5;&#x6709;&#x591A;&#x4E2A;&#xFF0C;&#x4F46;&#x8FD9;&#x4E2A;PID&#x5BF9;&#x5E94;&#x7684;&#x8FDB;&#x7A0B;&#x662F;&#x5176;&#x4ED6;&#x7684;&#x7236;&#x8FDB;&#x7A0B;</p>
<p>70 Timeout 60
&#x670D;&#x52A1;&#x5668;&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x65AD;&#x5F00;&#x7684;&#x65F6;&#x95F4;</p>
<p>76 KeepAlive Off
&#x662F;&#x5426;&#x6301;&#x7EED;&#x8FDE;&#x63A5;&#xFF08;&#x56E0;&#x4E3A;&#x6BCF;&#x6B21;&#x8FDE;&#x63A5;&#x90FD;&#x5F97;&#x4E09;&#x6B21;&#x63E1;&#x624B;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x8BBF;&#x95EE;&#x91CF;&#x4E0D;&#x5927;&#xFF0C;&#x5EFA;&#x8BAE;&#x6253;&#x5F00;&#x6B64;&#x9879;&#xFF0C;&#x5982;&#x679C;&#x7F51;&#x7AD9;&#x8BBF;&#x95EE;&#x91CF;&#x6BD4;&#x8F83;&#x5927;&#x5173;&#x95ED;&#x6B64;&#x9879;&#x6BD4;&#x8F83;&#x597D;&#xFF09;&#xFF0C;&#x4FEE;&#x6539;&#x4E3A;&#xFF1A;KeepAlive On &#x8868;&#x793A;&#x5141;&#x8BB8;&#x7A0B;&#x5E8F;&#x6027;&#x8054;&#x673A;</p>
<p>83 MaxKeepAliveRequests 100
&#x8868;&#x793A;&#x4E00;&#x4E2A;&#x8FDE;&#x63A5;&#x7684;&#x6700;&#x5927;&#x8BF7;&#x6C42;&#x6570;</p>
<p>89 KeepAliveTimeout 15
&#x65AD;&#x5F00;&#x8FDE;&#x63A5;&#x524D;&#x7684;&#x65F6;&#x95F4;</p>
<p>102 # 
103 StartServers    8 
104 MinSpareServers   5 
105 MaxSpareServers  20 
106 ServerLimit    256 
107 MaxClients    256 
108 MaxRequestsPerChild  4000 
109 #
&#x7CFB;&#x7EDF;&#x9ED8;&#x8BA4;&#x7684;&#x6A21;&#x5757;&#xFF0C;&#x8868;&#x793A;&#x4E3A;&#x6BCF;&#x4E2A;&#x8BBF;&#x95EE;&#x542F;&#x52A8;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#xFF08;&#x5373;&#x5F53;&#x6709;&#x591A;&#x4E2A;&#x8FDE;&#x63A5;&#x516C;&#x7528;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5728;&#x540C;&#x4E00;&#x65F6;&#x523B;&#x53EA;&#x80FD;&#x6709;&#x4E00;&#x4E2A;&#x83B7;&#x5F97;&#x670D;&#x52A1;&#xFF09;&#x3002;
StartServer&#x5F00;&#x59CB;&#x670D;&#x52A1;&#x65F6;&#x542F;&#x52A8;8&#x4E2A;&#x8FDB;&#x7A0B;&#xFF0C;&#x6700;&#x5C0F;&#x7A7A;&#x95F2;5&#x4E2A;&#x8FDB;&#x7A0B;&#xFF0C;&#x6700;&#x591A;&#x7A7A;&#x95F2;20&#x4E2A;&#x8FDB;&#x7A0B;&#x3002;
MaxClient&#x9650;&#x5236;&#x540C;&#x4E00;&#x65F6;&#x523B;&#x5BA2;&#x6237;&#x7AEF;&#x7684;&#x6700;&#x5927;&#x8FDE;&#x63A5;&#x8BF7;&#x6C42;&#x6570;&#x91CF;&#x8D85;&#x8FC7;&#x7684;&#x8981;&#x8FDB;&#x5165;&#x7B49;&#x5019;&#x961F;&#x5217;&#x3002;
MaxRequestsPerChild&#x6BCF;&#x4E2A;&#x8FDB;&#x7A0B;&#x751F;&#x5B58;&#x671F;&#x5185;&#x5141;&#x8BB8;&#x670D;&#x52A1;&#x7684;&#x6700;&#x5927;&#x8BF7;&#x6C42;&#x6570;&#x91CF;&#xFF0C;0&#x8868;&#x793A;&#x6C38;&#x4E0D;&#x7ED3;&#x675F;</p>
<p>118 # 
119 StartServers     4 
120 MaxClients     300 
121 MinSpareThreads   25 
122 MaxSpareThreads   75 
123 ThreadsPerChild   25 
124 MaxRequestsPerChild  0 
125 #
&#x4E3A;Apache&#x914D;&#x7F6E;&#x7EBF;&#x7A0B;&#x8BBF;&#x95EE;&#xFF0C;&#x5373;&#x6BCF;&#x5BF9;WEB&#x670D;&#x52A1;&#x8BBF;&#x95EE;&#x542F;&#x52A8;&#x4E00;&#x4E2A;&#x7EBF;&#x7A0B;&#xFF0C;&#x8FD9;&#x6837;&#x5BF9;&#x5185;&#x5B58;&#x5360;&#x7528;&#x7387;&#x6BD4;&#x8F83;&#x5C0F;&#x3002;
ServerLimit&#x670D;&#x52A1;&#x5668;&#x5141;&#x8BB8;&#x914D;&#x7F6E;&#x8FDB;&#x7A0B;&#x6570;&#x7684;&#x4E0A;&#x9650;&#x3002;
ThreadLimit&#x6BCF;&#x4E2A;&#x5B50;&#x8FDB;&#x7A0B;&#x53EF;&#x80FD;&#x914D;&#x7F6E;&#x7684;&#x7EBF;&#x7A0B;&#x4E0A;&#x9650;
StartServers&#x542F;&#x52A8;&#x4E24;&#x4E2A;httpd&#x8FDB;&#x7A0B;&#xFF0C;
MaxClients&#x540C;&#x65F6;&#x6700;&#x591A;&#x80FD;&#x53D1;&#x8D77;250&#x4E2A;&#x8BBF;&#x95EE;&#xFF0C;&#x8D85;&#x8FC7;&#x7684;&#x8981;&#x8FDB;&#x5165;&#x961F;&#x5217;&#x7B49;&#x5F85;&#xFF0C;&#x5176;&#x5927;&#x5C0F;&#x6709;ServerLimit&#x548C;ThreadsPerChild&#x7684;&#x4E58;&#x79EF;&#x51B3;&#x5B9A;
ThreadsPerChild&#x6BCF;&#x4E2A;&#x5B50;&#x8FDB;&#x7A0B;&#x751F;&#x5B58;&#x671F;&#x95F4;&#x5E38;&#x9A7B;&#x6267;&#x884C;&#x7EBF;&#x7A0B;&#x6570;&#xFF0C;&#x5B50;&#x7EBF;&#x7A0B;&#x5EFA;&#x7ACB;&#x4E4B;&#x540E;&#x5C06;&#x4E0D;&#x518D;&#x589E;&#x52A0;
MaxRequestsPerChild&#x6BCF;&#x4E2A;&#x8FDB;&#x7A0B;&#x542F;&#x52A8;&#x7684;&#x6700;&#x5927;&#x7EBF;&#x7A0B;&#x6570;&#xFF0C;&#x5982;&#x8FBE;&#x5230;&#x9650;&#x5236;&#x6570;&#x65F6;&#x8FDB;&#x7A0B;&#x5C06;&#x7ED3;&#x675F;&#xFF0C;&#x5982;&#x7F6E;&#x4E3A;0&#x5219;&#x5B50;&#x7EBF;&#x7A0B;&#x6C38;&#x4E0D;&#x7ED3;&#x675F;</p>
<p>136 Listen 80
&#x76D1;&#x542C;&#x7684;&#x7AEF;&#x53E3;&#xFF0C;&#x5982;&#x6709;&#x591A;&#x5757;&#x7F51;&#x5361;&#xFF0C;&#x9ED8;&#x8BA4;&#x76D1;&#x542C;&#x6240;&#x6709;&#x7F51;&#x5361;</p>
<p>123 150 LoadModule auth_basic_module modules/mod_auth_basic.so 
...... 
201 LoadModule version_module modules/mod_version.so
&#x542F;&#x52A8;&#x65F6;&#x52A0;&#x8F7D;&#x7684;&#x6A21;&#x5757;</p>
<p>221 Include conf.d/*.conf
&#x52A0;&#x8F7D;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</p>
<p>242 User apache 
243 Group apache
&#x542F;&#x52A8;&#x670D;&#x52A1;&#x540E;&#x8F6C;&#x6362;&#x7684;&#x8EAB;&#x4EFD;&#xFF0C;&#x5728;&#x542F;&#x52A8;&#x670D;&#x52A1;&#x65F6;&#x901A;&#x5E38;&#x4EE5;root&#x8EAB;&#x4EFD;&#xFF0C;&#x7136;&#x540E;&#x8F6C;&#x6362;&#x8EAB;&#x4EFD;&#xFF0C;&#x8FD9;&#x6837;&#x589E;&#x52A0;&#x7CFB;&#x7EDF;&#x5B89;&#x5168;</p>
</blockquote>
<p>2&#xFF09;Main server configuration</p>
<blockquote>
<p>262 ServerAdmin root@localhost
&#x7BA1;&#x7406;&#x5458;&#x7684;&#x90AE;&#x7BB1;</p>
<p>276 #ServerName www.example.com:80
&#x9ED8;&#x8BA4;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x6307;&#x5B9A;&#x7684;&#xFF0C;&#x670D;&#x52A1;&#x5668;&#x901A;&#x8FC7;&#x540D;&#x5B57;&#x89E3;&#x6790;&#x8FC7;&#x7A0B;&#x6765;&#x83B7;&#x5F97;&#x81EA;&#x5DF1;&#x7684;&#x540D;&#x5B57;&#xFF0C;&#x4F46;&#x5982;&#x679C;&#x89E3;&#x6790;&#x6709;&#x95EE;&#x9898;&#xFF08;&#x5982;&#x53CD;&#x5411;&#x89E3;&#x6790;&#x4E0D;&#x6B63;&#x786E;&#xFF09;&#xFF0C;&#x6216;&#x8005;&#x6CA1;&#x6709;DNS&#x540D;&#x5B57;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x5728;&#x8FD9;&#x91CC;&#x6307;&#x5B9A;IP&#x5730;&#x5740;&#xFF0C;&#x5F53;&#x8FD9;&#x9879;&#x4E0D;&#x6B63;&#x786E;&#x7684;&#x65F6;&#x5019;&#x670D;&#x52A1;&#x5668;&#x4E0D;&#x80FD;&#x6B63;&#x5E38;&#x542F;&#x52A8;&#x3002;&#x524D;&#x9762;&#x542F;&#x52A8;Apache&#x65F6;&#x5019;&#x63D0;&#x793A;&#x6B63;&#x5728;&#x542F;&#x52A8; httpd&#xFF1A;httpd: apr_sockaddr_info_get() failed forjustin httpd: Could not reliably determine the server&apos;s fully qualified domain name, using 127.0.0.1forServerName&#xFF0C;&#x89E3;&#x51B3;&#x65B9;&#x6CD5;&#x5C31;&#x662F;&#x542F;&#x52A8;&#x8BE5;&#x9879;&#x628A;www.example.com:80&#x4FEE;&#x6539;&#x4E3A;&#x81EA;&#x5DF1;&#x7684;&#x57DF;&#x540D;&#x6216;&#x8005;&#x76F4;&#x63A5;&#x4FEE;&#x6539;&#x4E3A;localhost</p>
<p>285 UseCanonicalName Off
&#x5982;&#x679C;&#x5BA2;&#x6237;&#x7AEF;&#x63D0;&#x4F9B;&#x4E86;&#x4E3B;&#x673A;&#x540D;&#x548C;&#x7AEF;&#x53E3;&#xFF0C;Apache&#x5C06;&#x4F1A;&#x4F7F;&#x7528;&#x5BA2;&#x6237;&#x7AEF;&#x63D0;&#x4F9B;&#x7684;&#x8FD9;&#x4E9B;&#x4FE1;&#x606F;&#x6765;&#x6784;&#x5EFA;&#x81EA;&#x5F15;&#x7528;URL&#x3002;&#x8FD9;&#x4E9B;&#x503C;&#x4E0E;&#x7528;&#x4E8E;&#x5B9E;&#x73B0;&#x57FA;&#x4E8E;&#x57DF;&#x540D;&#x7684;&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x7684;&#x503C;&#x76F8;&#x540C;&#xFF0C;&#x5E76;&#x4E14;&#x5BF9;&#x4E8E;&#x540C;&#x6837;&#x7684;&#x5BA2;&#x6237;&#x7AEF;&#x53EF;&#x7528;&#x3002;CGI&#x53D8;&#x91CF;SERVER_NAME&#x548C;SERVER_PORT&#x4E5F;&#x4F1A;&#x7531;&#x5BA2;&#x6237;&#x7AEF;&#x63D0;&#x4F9B;&#x7684;&#x503C;&#x6765;&#x6784;&#x5EFA;</p>
<p>292 DocumentRoot &quot;/var/www/html&quot;
&#x7F51;&#x9875;&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x7684;&#x76EE;&#x5F55;</p>
<p>302 #
303   Options FollowSymLinks 
304   AllowOverride None 
305 #
&#x5BF9;&#x6839;&#x76EE;&#x5F55;&#x7684;&#x4E00;&#x4E2A;&#x6743;&#x9650;&#x7684;&#x8BBE;&#x7F6E;</p>
<p>317 # 
331   Options Indexes FollowSymLinks 
338   AllowOverride None 
343   Order allow,deny 
344   Allow from all 
346 #
&#x5BF9;/var/www/html&#x76EE;&#x5F55;&#x7684;&#x4E00;&#x4E2A;&#x6743;&#x9650;&#x7684;&#x8BBE;&#x7F6E;&#xFF0C;options&#x4E2D;Indexes&#x8868;&#x793A;&#x5F53;&#x7F51;&#x9875;&#x4E0D;&#x5B58;&#x5728;&#x7684;&#x65F6;&#x5019;&#x5141;&#x8BB8;&#x7D22;&#x5F15;&#x663E;&#x793A;&#x76EE;&#x5F55;&#x4E2D;&#x7684;&#x6587;&#x4EF6;&#xFF0C;FollowSymLinks&#x662F;&#x5426;&#x5141;&#x8BB8;&#x8BBF;&#x95EE;&#x7B26;&#x53F7;&#x94FE;&#x63A5;&#x6587;&#x4EF6;&#x3002;&#x6709;&#x7684;&#x9009;&#x9879;&#x6709;ExecCGI&#x8868;&#x662F;&#x5426;&#x4F7F;&#x7528;CGI&#xFF0C;&#x5982;Options Includes ExecCGI FollowSymLinks&#x8868;&#x793A;&#x5141;&#x8BB8;&#x670D;&#x52A1;&#x5668;&#x6267;&#x884C;CGI&#x53CA;SSI&#xFF0C;&#x7981;&#x6B62;&#x5217;&#x51FA;&#x76EE;&#x5F55;&#x3002;SymLinksOwnerMatch&#x8868;&#x793A;&#x5F53;&#x7B26;&#x53F7;&#x94FE;&#x63A5;&#x7684;&#x6587;&#x4EF6;&#x548C;&#x76EE;&#x6807;&#x6587;&#x4EF6;&#x4E3A;&#x540C;&#x4E00;&#x7528;&#x6237;&#x62E5;&#x6709;&#x65F6;&#x624D;&#x5141;&#x8BB8;&#x8BBF;&#x95EE;&#x3002;AllowOverrideNone&#x8868;&#x793A;&#x4E0D;&#x5141;&#x8BB8;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;&#x7684;&#x8BBF;&#x95EE;&#x63A7;&#x5236;&#x6587;&#x4EF6;&#x6765;&#x6539;&#x53D8;&#x8FD9;&#x91CC;&#x7684;&#x914D;&#x7F6E;&#xFF0C;&#x8FD9;&#x4E5F;&#x610F;&#x5473;&#x7740;&#x4E0D;&#x7528;&#x67E5;&#x770B;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;&#x7684;&#x8BBF;&#x95EE;&#x63A7;&#x5236;&#x6587;&#x4EF6;&#xFF0C;&#x4FEE;&#x6539;&#x4E3A;&#xFF1A;AllowOverride All &#x8868;&#x793A;&#x5141;&#x8BB8;.htaccess&#x3002;Order&#x5BF9;&#x9875;&#x9762;&#x7684;&#x8BBF;&#x95EE;&#x63A7;&#x5236;&#x987A;&#x5E8F;&#x540E;&#x9762;&#x7684;&#x4E00;&#x9879;&#x662F;&#x9ED8;&#x8BA4;&#x9009;&#x9879;&#xFF0C;&#x5982;allow&#xFF0C;deny&#x5219;&#x9ED8;&#x8BA4;&#x662F;deny&#xFF0C;Allowfromall&#x8868;&#x793A;&#x5141;&#x8BB8;&#x6240;&#x6709;&#x7684;&#x7528;&#x6237;&#xFF0C;&#x901A;&#x8FC7;&#x548C;&#x4E0A;&#x4E00;&#x9879;&#x7ED3;&#x5408;&#x53EF;&#x4EE5;&#x63A7;&#x5236;&#x5BF9;&#x7F51;&#x7AD9;&#x7684;&#x8BBF;&#x95EE;&#x63A7;&#x5236;</p>
<p>360 # 
366   UserDir disabled 
375 #
&#x662F;&#x5426;&#x5141;&#x8BB8;&#x7528;&#x6237;&#x8BBF;&#x95EE;&#x5176;&#x5BB6;&#x76EE;&#x5F55;&#xFF0C;&#x9ED8;&#x8BA4;&#x662F;&#x4E0D;&#x5141;&#x8BB8;</p>
<p>381 # 
382 #   AllowOverride FileInfo AuthConfig Limit 
383 #   Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec 
384 #<br>385 #     Order allow,deny 
386 #     Allow from all 
387 #<br>388 #<br>389 #     Order deny,allow 
390 #     Deny from all 
391 #<br>392 #
&#x5982;&#x679C;&#x5141;&#x8BB8;&#x8BBF;&#x95EE;&#x7528;&#x6237;&#x7684;&#x5BB6;&#x76EE;&#x5F55;&#x4E2D;&#x7684;&#x7F51;&#x9875;&#x6587;&#x4EF6;&#xFF0C;&#x5219;&#x53D6;&#x6D88;&#x4EE5;&#x4E0A;&#x6CE8;&#x91CA;&#xFF0C;&#x5E76;&#x5BF9;&#x5176;&#x4E2D;&#x8FDB;&#x884C;&#x4FEE;&#x6539;</p>
<p>402 DirectoryIndex index.html index.html.var
&#x6307;&#x5B9A;&#x6240;&#x8981;&#x8BBF;&#x95EE;&#x7684;&#x4E3B;&#x9875;&#x7684;&#x9ED8;&#x8BA4;&#x4E3B;&#x9875;&#x540D;&#x5B57;&#xFF0C;&#x9ED8;&#x8BA4;&#x9996;&#x9875;&#x6587;&#x4EF6;&#x540D;&#x4E3A;index.html</p>
<p>409 AccessFileName .htaccess
&#x5B9A;&#x4E49;&#x6BCF;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;&#x7684;&#x8BBF;&#x95EE;&#x63A7;&#x5236;&#x6587;&#x4EF6;&#x540D;&#xFF0C;&#x7F3A;&#x7701;&#x4E3A;.htaccess</p>
<p>415 # 
416   Order allow,deny 
417   Deny from all 
418   Satisfy All 
419 #
&#x63A7;&#x5236;&#x4E0D;&#x8BA9;web&#x4E0A;&#x7684;&#x7528;&#x6237;&#x6765;&#x67E5;&#x770B;.htpasswd&#x548C;.htaccess&#x8FD9;&#x4E24;&#x4E2A;&#x6587;&#x4EF6;</p>
<p>425 TypesConfig /etc/mime.types
&#x7528;&#x4E8E;&#x8BBE;&#x7F6E;&#x4FDD;&#x5B58;&#x6709;&#x4E0D;&#x540C;MIME&#x7C7B;&#x578B;&#x6570;&#x636E;&#x7684;&#x6587;&#x4EF6;&#x540D;</p>
<p>436 DefaultType text/plain
&#x9ED8;&#x8BA4;&#x7684;&#x7F51;&#x9875;&#x7684;&#x7C7B;&#x578B;</p>
<p>443<br>444 #  MIMEMagicFile /usr/share/magic.mime 
445   MIMEMagicFile conf/magic
446
&#x6307;&#x5B9A;&#x5224;&#x65AD;&#x6587;&#x4EF6;&#x771F;&#x5B9E;MIME&#x7C7B;&#x578B;&#x529F;&#x80FD;&#x7684;&#x6A21;&#x5757;</p>
<p>456 HostnameLookups Off
&#x5F53;&#x6253;&#x5F00;&#x6B64;&#x9879;&#x529F;&#x80FD;&#x65F6;&#xFF0C;&#x5728;&#x8BB0;&#x5F55;&#x65E5;&#x5FD7;&#x7684;&#x65F6;&#x5019;&#x540C;&#x65F6;&#x8BB0;&#x5F55;&#x4E3B;&#x673A;&#x540D;&#xFF0C;&#x8FD9;&#x9700;&#x8981;&#x670D;&#x52A1;&#x5668;&#x6765;&#x53CD;&#x5411;&#x89E3;&#x6790;&#x57DF;&#x540D;&#xFF0C;&#x589E;&#x52A0;&#x4E86;&#x670D;&#x52A1;&#x5668;&#x7684;&#x8D1F;&#x8F7D;&#xFF0C;&#x901A;&#x5E38;&#x4E0D;&#x5EFA;&#x8BAE;&#x5F00;&#x542F;</p>
<p>466 #EnableMMAP off
&#x662F;&#x5426;&#x5141;&#x8BB8;&#x5185;&#x5B58;&#x6620;&#x5C04;&#xFF1A;&#x5982;&#x679C;httpd&#x5728;&#x4F20;&#x9001;&#x8FC7;&#x7A0B;&#x4E2D;&#x9700;&#x8981;&#x8BFB;&#x53D6;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x5B83;&#x662F;&#x5426;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5185;&#x5B58;&#x6620;&#x5C04;&#x3002;&#x5982;&#x679C;&#x4E3A;on&#x8868;&#x793A;&#x5982;&#x679C;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x652F;&#x6301;&#x7684;&#x8BDD;&#xFF0C;&#x5C06;&#x4F7F;&#x7528;&#x5185;&#x5B58;&#x6620;&#x5C04;&#x3002;&#x5728;&#x4E00;&#x4E9B;&#x591A;&#x6838;&#x5904;&#x7406;&#x5668;&#x7684;&#x7CFB;&#x7EDF;&#x4E0A;&#xFF0C;&#x8FD9;&#x53EF;&#x80FD;&#x4F1A;&#x964D;&#x4F4E;&#x6027;&#x80FD;&#xFF0C;&#x5982;&#x679C;&#x5728;&#x6302;&#x8F7D;&#x4E86;NFS&#x7684;DocumentRoot&#x4E0A;&#x5982;&#x679C;&#x5F00;&#x542F;&#x6B64;&#x9879;&#x529F;&#x80FD;&#xFF0C;&#x53EF;&#x80FD;&#x9020;&#x6210;&#x56E0;&#x4E3A;&#x5206;&#x6BB5;&#x800C;&#x9020;&#x6210;httpd&#x5D29;&#x6E83;</p>
<p>475 #EnableSendfile off
&#x8FD9;&#x4E2A;&#x6307;&#x4EE4;&#x63A7;&#x5236;httpd&#x662F;&#x5426;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x5185;&#x6838;&#x7684;sendfile&#x652F;&#x6301;&#x6765;&#x5C06;&#x6587;&#x4EF6;&#x53D1;&#x9001;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x3002;&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x5F53;&#x5904;&#x7406;&#x4E00;&#x4E2A;&#x8BF7;&#x6C42;&#x5E76;&#x4E0D;&#x9700;&#x8981;&#x8BBF;&#x95EE;&#x6587;&#x4EF6;&#x5185;&#x90E8;&#x7684;&#x6570;&#x636E;&#x65F6;(&#x6BD4;&#x5982;&#x53D1;&#x9001;&#x4E00;&#x4E2A;&#x9759;&#x6001;&#x7684;&#x6587;&#x4EF6;&#x5185;&#x5BB9;)&#xFF0C;&#x5982;&#x679C;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x652F;&#x6301;&#xFF0C;Apache&#x5C06;&#x4F7F;&#x7528;sendfile&#x5C06;&#x6587;&#x4EF6;&#x5185;&#x5BB9;&#x76F4;&#x63A5;&#x53D1;&#x9001;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x800C;&#x5E76;&#x4E0D;&#x8BFB;&#x53D6;&#x6587;&#x4EF6;</p>
<p>484 ErrorLog logs/error_log
&#x9519;&#x8BEF;&#x65E5;&#x5FD7;&#x5B58;&#x653E;&#x7684;&#x4F4D;&#x7F6E;</p>
<p>491 LogLevel warn
Apache&#x65E5;&#x5FD7;&#x7684;&#x7EA7;&#x522B;</p>
<p>497 LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; combined 
498 LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b&quot; common 
499 LogFormat &quot;%{Referer}i -&gt; %U&quot; referer 
500 LogFormat &quot;%{User-agent}i&quot; agent
&#x5B9A;&#x4E49;&#x4E86;&#x65E5;&#x5FD7;&#x7684;&#x683C;&#x5F0F;&#xFF0C;&#x5E76;&#x7528;&#x4E0D;&#x540C;&#x7684;&#x4EE3;&#x53F7;&#x8868;&#x793A;</p>
<blockquote>
<p>&#x5404;&#x53C2;&#x6570;&#x89E3;&#x91CA;&#xFF1A;</p>
<p><code>%h</code>&#xFF1A;&#x5BA2;&#x6237;&#x7AEF;&#x7684;IP&#x5730;&#x5740;</p>
<p><code>%I</code>&#xFF1A;Remote User&#xFF0C;&#x901A;&#x5E38;&#x4E3A;<code>-</code></p>
<p><code>%u</code>&#xFF1A;&#x7528;&#x6237;&#x662F;&#x5426;&#x767B;&#x5F55;&#x8BBF;&#x95EE;&#xFF0C;&#x82E5;&#x4E3A;&#x975E;&#x767B;&#x5F55;&#x8BBF;&#x95EE;&#x65F6;&#xFF0C;&#x4E3A;<code>-</code></p>
<p><code>%t</code>&#xFF1A;&#x670D;&#x52A1;&#x5668;&#x6536;&#x5230;&#x8BF7;&#x6C42;&#x7684;&#x65F6;&#x95F4;</p>
<p><code>%r</code>&#xFF1A;First Line of request&#xFF0C;&#x5373;&#x8BF7;&#x6C42;&#x9996;&#x90E8;&#xFF0C;&#x8BB0;&#x5F55;&#x4E86;&#x6B64;&#x6B21;&#x8BBF;&#x95EE;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x4EE5;&#x53CA;&#x534F;&#x8BAE;&#x7248;&#x672C;&#x7B49;&#x4FE1;&#x606F;</p>
<p><code>%&gt;s</code>&#xFF1A;&#x54CD;&#x5E94;&#x72B6;&#x6001;&#x7801;</p>
<p><code>%b</code>&#xFF1A;&#x54CD;&#x5E94;&#x62A5;&#x6587;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x5355;&#x4F4D;&#x662F;&#x5B57;&#x8282;&#xFF0C;&#x4E0D;&#x5305;&#x62EC;&#x54CD;&#x5E94;&#x62A5;&#x6587;&#x7684;&#x9996;&#x90E8;&#x4FE1;&#x606F;</p>
<p><code>%{Referer}i</code>&#xFF1A;&#x8BF7;&#x6C42;&#x62A5;&#x6587;&#x9996;&#x90E8;&#x7684;<code>referer</code>&#x503C;&#xFF0C;&#x5373;&#x4ECE;&#x90A3;&#x4E2A;&#x9875;&#x9762;&#x8D85;&#x94FE;&#x63A5;&#x5230;&#x5F53;&#x524D;&#x9875;&#x9762;&#xFF0C;&#x53EF;&#x4EE5;&#x7528;&#x6765;&#x53CB;&#x60C5;&#x94FE;&#x63A5;</p>
<p><code>%{User-Agent}i</code>&#xFF1A;&#x8BF7;&#x6C42;&#x62A5;&#x6587;&#x4E2D;&#x7684;<code>User-Agent</code>&#x503C;&#xFF0C;&#x5373;&#x7528;&#x6237;&#x8BBF;&#x95EE;&#x6807;&#x8BC6;</p>
</blockquote>
<p>513 #CustomLog logs/access_log common 
526 CustomLog logs/access_log combined
&#x8BF4;&#x660E;&#x65E5;&#x5FD7;&#x8BB0;&#x5F55;&#x7684;&#x4F4D;&#x7F6E;&#xFF0C;&#x8FD9;&#x91CC;&#x9762;&#x4F7F;&#x7528;&#x4E86;&#x76F8;&#x5BF9;&#x8DEF;&#x5F84;&#xFF0C;&#x6240;&#x4EE5;ServerRoot&#x9700;&#x8981;&#x6307;&#x51FA;&#xFF0C;&#x65E5;&#x5FD7;&#x4F4D;&#x7F6E;&#x5C31;&#x5B58;&#x653E;&#x5728;/etc/httpd/logs</p>
<p>536 ServerSignature On
&#x5B9A;&#x4E49;&#x5F53;&#x5BA2;&#x6237;&#x8BF7;&#x6C42;&#x7684;&#x7F51;&#x9875;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x6216;&#x8005;&#x9519;&#x8BEF;&#x7684;&#x65F6;&#x5019;&#x662F;&#x5426;&#x63D0;&#x793A;apache&#x7684;&#x7248;&#x672C;&#x7684;&#x4E00;&#x4E9B;&#x4FE1;&#x606F;</p>
<p>551 Alias /icons/ &quot;/var/www/icons/&quot;
&#x5B9A;&#x4E49;&#x4E00;&#x4E9B;&#x4E0D;&#x5728;DocumentRoot&#x4E0B;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x800C;&#x53EF;&#x4EE5;&#x5C06;&#x5176;&#x6620;&#x5C04;&#x5230;&#x7F51;&#x9875;&#x6839;&#x76EE;&#x5F55;&#x4E2D;&#xFF0C;&#x8FD9;&#x4E5F;&#x662F;&#x8BBF;&#x95EE;&#x5176;&#x4ED6;&#x76EE;&#x5F55;&#x7684;&#x4E00;&#x79CD;&#x65B9;&#x6CD5;&#xFF0C;&#x4F46;&#x5728;&#x58F0;&#x660E;&#x7684;&#x65F6;&#x5019;&#x5207;&#x8BB0;&#x76EE;&#x5F55;&#x540E;&#x9762;&#x52A0;&#x201D;/&#x201D;</p>
<p>553<br>554   Options Indexes MultiViews FollowSymLinks 
555   AllowOverride None 
556   Order allow,deny 
557   Allow from all 
558
&#x5B9A;&#x4E49;&#x5BF9;/var/www/icons/&#x7684;&#x6743;&#x9650;&#xFF0C;&#x4FEE;&#x6539;&#x4E3A; Options MultiViews FollowSymLinks&#x8868;&#x793A;&#x4E0D;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x4E0A;&#x663E;&#x793A;&#x6811;&#x72B6;&#x76EE;&#x5F55;&#x7ED3;&#x6784;</p>
<p>563<br>564   # Location of the WebDAV lock database. 
565   DAVLockDB /var/lib/dav/lockdb
566
&#x5BF9;mod_dav_fs.c&#x6A21;&#x5757;&#x513F;&#x7684;&#x7BA1;&#x7406;</p>
<p>576 ScriptAlias /cgi-bin/ &quot;/var/www/cgi-bin/&quot;
&#x5BF9;CGI&#x6A21;&#x5757;&#x513F;&#x7684;&#x7684;&#x522B;&#x540D;&#xFF0C;&#x4E0E;Alias&#x76F8;&#x4F3C;&#x3002;</p>
<p>582<br>583   AllowOverride None 
584   Options None 
585   Order allow,deny 
586   Allow from all 
587
&#x5BF9;/var/www/cgi-bin&#x6587;&#x4EF6;&#x5939;&#x7684;&#x7BA1;&#x7406;&#xFF0C;&#x65B9;&#x6CD5;&#x540C;&#x4E0A;</p>
<p># Redirect old-URI new-URL
Redirect&#x53C2;&#x6570;&#x662F;&#x7528;&#x6765;&#x91CD;&#x5199;URL&#x7684;&#xFF0C;&#x5F53;&#x6D4F;&#x89C8;&#x5668;&#x8BBF;&#x95EE;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x7684;&#x4E00;&#x4E2A;&#x5DF2;&#x7ECF;&#x4E0D;&#x5B58;&#x5728;&#x7684;&#x8D44;&#x6E90;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x670D;&#x52A1;&#x5668;&#x8FD4;&#x56DE;&#x7ED9;&#x6D4F;&#x89C8;&#x5668;&#x65B0;&#x7684;URL&#xFF0C;&#x544A;&#x8BC9;&#x6D4F;&#x89C8;&#x5668;&#x4ECE;&#x8BE5;URL&#x4E2D;&#x83B7;&#x53D6;&#x8D44;&#x6E90;&#x3002;&#x8FD9;&#x4E3B;&#x8981;&#x7528;&#x4E8E;&#x539F;&#x6765;&#x5B58;&#x5728;&#x4E8E;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x7684;&#x6587;&#x6863;&#x6539;&#x53D8;&#x4F4D;&#x7F6E;&#x4E4B;&#x540E;&#xFF0C;&#x53C8;&#x9700;&#x8981;&#x80FD;&#x591F;&#x4F7F;&#x7528;&#x8001;URL&#x80FD;&#x8BBF;&#x95EE;&#x5230;&#x539F;&#x7F51;&#x9875;</p>
<p>604 IndexOptions FancyIndexing VersionSort NameWidth=<em> HTMLTable Charset=UTF-8 
611 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
... 
669 IndexIgnore .??</em> <em>~ </em># HEADER<em> README</em> RCS CVS <em>,v </em>,t
&#x5F53;&#x4E00;&#x4E2A;HTTP&#x8BF7;&#x6C42;&#x7684;URL&#x4E3A;&#x4E00;&#x4E2A;&#x76EE;&#x5F55;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x670D;&#x52A1;&#x5668;&#x8FD4;&#x56DE;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4E2D;&#x7684;&#x7D22;&#x5F15;&#x6587;&#x4EF6;&#xFF0C;&#x5982;&#x679C;&#x76EE;&#x5F55;&#x4E2D;&#x4E0D;&#x5B58;&#x5728;&#x7D22;&#x5F15;&#x6587;&#x4EF6;&#xFF0C;&#x5E76;&#x4E14;&#x670D;&#x52A1;&#x5668;&#x6709;&#x8BB8;&#x53EF;&#x663E;&#x793A;&#x76EE;&#x5F55;&#x6587;&#x4EF6;&#x5217;&#x8868;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5C31;&#x4F1A;&#x663E;&#x793A;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4E2D;&#x7684;&#x6587;&#x4EF6;&#x5217;&#x8868;&#xFF0C;&#x4E3A;&#x4E86;&#x4F7F;&#x5F97;&#x8FD9;&#x4E2A;&#x6587;&#x4EF6;&#x5217;&#x8868;&#x80FD;&#x5177;&#x6709;&#x53EF;&#x7406;&#x89E3;&#x6027;&#xFF0C;&#x800C;&#x4E0D;&#x4EC5;&#x4EC5;&#x662F;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x5217;&#x8868;&#xFF0C;&#x5C31;&#x9700;&#x8981;&#x524D;&#x8FD9;&#x4E9B;&#x53C2;&#x6570;&#x3002;&#x5982;&#x679C;&#x4F7F;&#x7528;&#x4E86;IndexOptionsFancyIndexing&#x9009;&#x9879;&#xFF0C;&#x53EF;&#x4EE5;&#x8BA9;&#x670D;&#x52A1;&#x5668;&#x9488;&#x5BF9;&#x4E0D;&#x540C;&#x7684;&#x6587;&#x4EF6;&#x5F15;&#x7528;&#x4E0D;&#x540C;&#x7684;&#x56FE;&#x6807;&#x3002;&#x5982;&#x679C;&#x6CA1;&#x6709;&#x5C31;&#x4F7F;&#x7528;DefaultIcon&#x5B9A;&#x4E49;&#x7F3A;&#x7701;&#x56FE;&#x6807;&#x3002;&#x540C;&#x6837;&#xFF0C;&#x4F7F;&#x7528;AddDescription&#x53EF;&#x4EE5;&#x4E3A;&#x4E0D;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x6587;&#x6863;&#x4ECB;&#x5165;&#x63CF;&#x8FF0;</p>
<p>709 AddLanguage ca .ca 
...... 
734 AddLanguage zh-TW .zh-tw
&#x6DFB;&#x52A0;&#x8BED;&#x8A00;</p>
<p>743 LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
Apache&#x652F;&#x6301;&#x7684;&#x8BED;&#x8A00;</p>
<p>759 AddDefaultCharset UTF-8
&#x9ED8;&#x8BA4;&#x652F;&#x6301;&#x7684;&#x8BED;&#x8A00;</p>
<p>765 #AddType application/x-tar .tgz
&#x652F;&#x6301;&#x7684;&#x5E94;&#x7528;&#x5982;&#x679C;&#x60F3;&#x652F;&#x6301;&#x5BF9;php&#x7684;&#x89E3;&#x6790;&#x6DFB;&#x52A0;&#x8FD9;&#x6837;&#x4E00;&#x884C;</p>
<p>773 #AddEncoding x-compress .Z 
774 #AddEncoding x-gzip .gz .tgz
&#x652F;&#x6301;&#x5BF9;&#x4EE5;.Z&#x548C;.gz.tgz&#x7ED3;&#x5C3E;&#x7684;&#x6587;&#x4EF6;</p>
<p>779 AddType application/x-compress .Z 
780 AddType application/x-gzip .gz .tgz
&#x6DFB;&#x52A0;&#x5BF9;&#x4E0A;&#x8FF0;&#x4E24;&#x79CD;&#x6587;&#x4EF6;&#x7684;&#x5E94;&#x7528;</p>
<p>796 #AddHandler cgi-script .cgi
&#x4FEE;&#x6539;&#x4E3A;&#xFF1A;AddHandler cgi-script .cgi .pl &#x8868;&#x793A;&#x5141;&#x8BB8;&#x6269;&#x5C55;&#x540D;&#x4E3A;.pl&#x7684;CGI&#x811A;&#x672C;&#x8FD0;&#x884C;</p>
<p>816 AddType text/html .shtml 
817 AddOutputFilter INCLUDES .shtml
&#x6DFB;&#x52A0;&#x52A8;&#x6001;&#x5904;&#x7406;&#x7C7B;&#x578B;&#x4E3A;server-parsed&#x7531;&#x670D;&#x52A1;&#x5668;&#x9884;&#x5148;&#x5206;&#x6790;&#x7F51;&#x9875;&#x5185;&#x7684;&#x6807;&#x8BB0;&#xFF0C;&#x5C06;&#x6807;&#x8BB0;&#x6539;&#x4E3A;&#x6B63;&#x786E;&#x7684;HTML&#x6807;&#x8BC6;</p>
<p>833 #ErrorDocument 404 /missing.html
&#x5F53;&#x670D;&#x52A1;&#x5668;&#x51FA;&#x73B0;404&#x9519;&#x8BEF;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8FD4;&#x56DE;missing.html&#x9875;&#x9762;</p>
<p>855 Alias /error/ &quot;/var/www/error/&quot;
&#x8D4B;&#x503C;&#x522B;&#x540D;</p>
<p>857<br>858<br>859<br>860     AllowOverride None 
861     Options IncludesNoExec 
862     AddOutputFilter Includes html 
863     AddHandler type-map var 
864     Order allow,deny 
865     Allow from all 
866     LanguagePriority en es de fr 
867     ForceLanguagePriority Prefer Fallback 
868<br>&#x5BF9;/var/www/error&#x7F51;&#x9875;&#x7684;&#x6743;&#x9650;&#x53CA;&#x64CD;&#x4F5C;</p>
<p>895 BrowserMatch &quot;Mozilla/2&quot; nokeepalive 
896 BrowserMatch &quot;MSIE 4.0b2;&quot; nokeepalive downgrade-1.0 force-response-1.0 
897 BrowserMatch &quot;RealPlayer 4.0&quot; force-response-1.0 
898 BrowserMatch &quot;Java/1.0&quot; force-response-1.0 
899 BrowserMatch &quot;JDK/1.0&quot; force-response-1.0 
.....
&#x8BBE;&#x7F6E;&#x7279;&#x6B8A;&#x7684;&#x53C2;&#x6570;&#xFF0C;&#x4EE5;&#x4FDD;&#x8BC1;&#x5BF9;&#x8001;&#x7248;&#x672C;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x517C;&#x5BB9;&#xFF0C;&#x5E76;&#x652F;&#x6301;&#x65B0;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x7279;&#x6027;</p>
</blockquote>
<p><strong>3&#xFF09;Virtual Hosts</strong></p>
<blockquote>
<p>990 #NameVirtualHost *:80
&#x5982;&#x679C;&#x542F;&#x7528;&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x7684;&#x8BDD;&#xFF0C;&#x5FC5;&#x987B;&#x5C06;&#x524D;&#x9762;&#x7684;&#x6CE8;&#x91CA;&#x53BB;&#x6389;&#xFF0C;&#x800C;&#x4E14;&#xFF0C;&#x7B2C;&#x4E8C;&#x90E8;&#x5206;&#x7684;&#x5185;&#x5BB9;&#x90FD;&#x53EF;&#x4EE5;&#x51FA;&#x73B0;&#x5728;&#x6BCF;&#x4E2A;&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x90E8;&#x5206;&#x3002;</p>
<p>998 # VirtualHost example: 
1003 # 
1004 #   ServerAdmin webmaster@www.linuxidc.com 
1005 #   DocumentRoot /www/docs/www.linuxidc.com 
1006 #   ServerName www.linuxidc.com 
1007 #   ErrorLog logs/www.linuxidc.com-error_log 
1008 #   CustomLog logs/www.linuxidc.com-access_log common 
1009 # </p>
</blockquote>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; AGou 2020 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-03-02 20:42:24
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="httpd.html" class="navigation navigation-prev " aria-label="Previous page: httpd/Apache">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Nginx.html" class="navigation navigation-next " aria-label="Next page: Nginx">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"httpd.conf文件详解","level":"1.7.4","depth":2,"next":{"title":"Nginx","level":"1.7.5","depth":2,"path":"WEB_Server/Nginx.md","ref":"WEB_Server/Nginx.md","articles":[]},"previous":{"title":"httpd/Apache","level":"1.7.3","depth":2,"path":"WEB_Server/httpd.md","ref":"WEB_Server/httpd.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github@^2.0.0","edit-link@^2.0.2","anchors@^0.7.1","include-codeblock@^3.0.2","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","anchor-navigation-ex@0.1.8","prism","-highlight","insert-logo","-lunr","-search","search-pro","splitter","lightbox","github-buttons","-sharing","sharing-plus","donate","code","-klipse","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © AGou 2020","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"github":{"url":"https://github.com/AGou-ops"},"livereload":{},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"alipay":"https://agou-ops.github.io/images/alipay.png","alipayText":"支付宝打赏","button":"打赏","title":"","wechat":"https://agou-ops.github.io/images/wechatpay.png","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"anchor-navigation-ex":{"isRewritePageTitle":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"lightbox":{"jquery":true,"sameUuid":false},"github-buttons":{"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"},"expandable-chapters-small":{},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":true,"all":["douban","facebook","google","hatenaBookmark","instapaper","linkedin","twitter","weibo","messenger","qq","qzone","viber","vk","weibo","pocket","stumbleupon","whatsapp"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"edit-link":{"label":"Edit This Page","base":"https://github.com/AGou-ops/myStudyNote"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"insert-logo":{"style":"background: none; max-height: 50px; min-height: 50px","url":"https://s2.ax1x.com/2019/12/10/QBD0xO.jpg"}},"theme":"default","author":"AGou","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"AGou's StudyNote","language":"zh-hans","output.name":"site","links":{"sidebar":{"◆点击进入我的个人博客":"http://agou-ops.github.io"}},"gitbook":"3.2.3","description":"岂能尽如人意，但求无愧我心。"},"file":{"path":"WEB_Server/httpd.conf文件详解.md","mtime":"2020-03-02T12:42:24.296Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-02T12:42:32.383Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

